package com.diankangwo.sys.entity;

import java.io.Serializable;

/** 第三方服务（短信接口）
 * Created by wuye on 2017/9/11.
 */
public class SysThirdPartyServiceEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 对应字段
     */
    private int id;

    private String SMSkey;      //短信签名

    private String SMStemplate; //短信模板

    private String SendTime;    //发送时机

    private String SMSContent;  //发送内容

    public SysThirdPartyServiceEntity() {
    }

    public SysThirdPartyServiceEntity(int id, String SMSkey, String SMStemplate, String sendTime, String SMSContent) {
        this.id = id;
        this.SMSkey = SMSkey;
        this.SMStemplate = SMStemplate;
        SendTime = sendTime;
        this.SMSContent = SMSContent;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSMSkey() {
        return SMSkey;
    }

    public void setSMSkey(String SMSkey) {
        this.SMSkey = SMSkey;
    }

    public String getSMStemplate() {
        return SMStemplate;
    }

    public void setSMStemplate(String SMStemplate) {
        this.SMStemplate = SMStemplate;
    }

    public String getSendTime() {
        return SendTime;
    }

    public void setSendTime(String sendTime) {
        SendTime = sendTime;
    }

    public String getSMSContent() {
        return SMSContent;
    }

    public void setSMSContent(String SMSContent) {
        this.SMSContent = SMSContent;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SysThirdPartyServiceEntity that = (SysThirdPartyServiceEntity) o;

        if (id != that.id) return false;
        if (SMSkey != null ? !SMSkey.equals(that.SMSkey) : that.SMSkey != null) return false;
        if (SMStemplate != null ? !SMStemplate.equals(that.SMStemplate) : that.SMStemplate != null) return false;
        if (SendTime != null ? !SendTime.equals(that.SendTime) : that.SendTime != null) return false;
        return SMSContent != null ? SMSContent.equals(that.SMSContent) : that.SMSContent == null;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (SMSkey != null ? SMSkey.hashCode() : 0);
        result = 31 * result + (SMStemplate != null ? SMStemplate.hashCode() : 0);
        result = 31 * result + (SendTime != null ? SendTime.hashCode() : 0);
        result = 31 * result + (SMSContent != null ? SMSContent.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "SysThirdPartyServiceEntity{" +
                "id=" + id +
                ", SMSkey='" + SMSkey + '\'' +
                ", SMStemplate='" + SMStemplate + '\'' +
                ", SendTime='" + SendTime + '\'' +
                ", SMSContent='" + SMSContent + '\'' +
                '}';
    }
}
